package com.ruoyi.teaching.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teaching.mapper.YaInterviewMasteryDetailMapper;
import com.ruoyi.teaching.domain.YaInterviewMasteryDetail;
import com.ruoyi.teaching.service.IYaInterviewMasteryDetailService;

/**
 * 面试掌握情况记录详情Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-14
 */
@Service
public class YaInterviewMasteryDetailServiceImpl extends ServiceImpl<YaInterviewMasteryDetailMapper,YaInterviewMasteryDetail> implements IYaInterviewMasteryDetailService
{
    @Autowired
    private YaInterviewMasteryDetailMapper yaInterviewMasteryDetailMapper;

    /**
     * 查询面试掌握情况记录详情
     *
     * @param id 面试掌握情况记录详情主键
     * @return 面试掌握情况记录详情
     */
    @Override
    public YaInterviewMasteryDetail selectYaInterviewMasteryDetailById(Long id)
    {
        return yaInterviewMasteryDetailMapper.selectYaInterviewMasteryDetailById(id);
    }

    /**
     * 查询面试掌握情况记录详情列表
     *
     * @param yaInterviewMasteryDetail 面试掌握情况记录详情
     * @return 面试掌握情况记录详情
     */
    @Override
    public List<YaInterviewMasteryDetail> selectYaInterviewMasteryDetailList(YaInterviewMasteryDetail yaInterviewMasteryDetail)
    {
        return yaInterviewMasteryDetailMapper.selectYaInterviewMasteryDetailList(yaInterviewMasteryDetail);
    }

    /**
     * 新增面试掌握情况记录详情
     *
     * @param yaInterviewMasteryDetail 面试掌握情况记录详情
     * @return 结果
     */
    @Override
    public int insertYaInterviewMasteryDetail(YaInterviewMasteryDetail yaInterviewMasteryDetail)
    {
        yaInterviewMasteryDetail.setCreateTime(DateUtils.getNowDate());
        return yaInterviewMasteryDetailMapper.insertYaInterviewMasteryDetail(yaInterviewMasteryDetail);
    }

    /**
     * 修改面试掌握情况记录详情
     *
     * @param yaInterviewMasteryDetail 面试掌握情况记录详情
     * @return 结果
     */
    @Override
    public int updateYaInterviewMasteryDetail(YaInterviewMasteryDetail yaInterviewMasteryDetail)
    {
        return yaInterviewMasteryDetailMapper.updateYaInterviewMasteryDetail(yaInterviewMasteryDetail);
    }

    /**
     * 批量删除面试掌握情况记录详情
     *
     * @param ids 需要删除的面试掌握情况记录详情主键
     * @return 结果
     */
    @Override
    public int deleteYaInterviewMasteryDetailByIds(Long[] ids)
    {
        return yaInterviewMasteryDetailMapper.deleteYaInterviewMasteryDetailByIds(ids);
    }

    /**
     * 删除面试掌握情况记录详情信息
     *
     * @param id 面试掌握情况记录详情主键
     * @return 结果
     */
    @Override
    public int deleteYaInterviewMasteryDetailById(Long id)
    {
        return yaInterviewMasteryDetailMapper.deleteYaInterviewMasteryDetailById(id);
    }
}
